package com.jsh.common.api.response;

/**
 * @Author JiangYaoFeng
 * 2022/1/6 16:35
 */

public class MyResultCode implements ResultCode{

    //操作是否成功
    boolean success;
    //操作代码
    int code;
    //提示信息
    String message;

    public MyResultCode() {

    }

    public MyResultCode(boolean success, int code, String message) {
        this.success = success;
        this.code = code;
        this.message = message;
    }

    @Override
    public boolean success() {
        return success;
    }

    @Override
    public int code() {
        return code;
    }

    @Override
    public String message() {
        return message;
    }
}
